package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.ArticleListModel
import com.powervision.mvvmdemo.ui.model.KnowledgeModel

/**
 * @auth: njb
 * @date: 2021/12/15 11:04
 * @desc: 描述
 */
class KnowLedgeRepository :BaseRepository(){
    private val mService by lazy {
        RetrofitClient.service
    }

    suspend fun knowLedge():ApiResponse<List<KnowledgeModel.DataBean?>>{
        return executeHttp {
            mService.knowLedge()
        }
    }
}